﻿@{
    ViewBag.Title = "Home Page";
}
<p>GainOrLoss</p>
<div class="jumbotron">
    <h1>ASP.NET</h1>
    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
    <p><a href="https://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

<div class="row">
    <div class="col-md-4">
        <h2>Getting started</h2>
        <p>
            ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
            enables a clean separation of concerns and gives you full control over markup
            for enjoyable, agile development.
        </p>
        <p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301865">Learn more &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Get more libraries</h2>
        <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
        <p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301866">Learn more &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Web Hosting</h2>
        <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
        <p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301867">Learn more &raquo;</a></p>
    </div>
</div>
<label>账号：<input type="text" name="name" value="" id="txtAccount" /></label>
<label>密码：<input type="password" name="name" value="" id="txtPassword" /></label>

<div class="panel panel-default">
    <div class="panel-heading">个人中心</div>
    <div class="panel-body">
        <p>账号：<span></span>  </p>
        <p>密码：<span></span>  </p>
    </div>
</div>
@section scripts{
    <script type="text/javascript">
        //$('#txtPassword').blur(function (e) {
        //    var account = $('#txtAccount').val();
        //    var password = $('#txtPassword').val();
        //    $.ajax({
        //        url: '/Home/GetString',
        //        data: { str: { Account: account, Password: password }},
        //        type: 'POST',
        //        success: function (data) {
        //            var a = data.Account;
        //            var p = data.Password;
        //            $('.panel-body p:first-child span').append(a);
        //            $('.panel-body p:last-child span').append(p);
        //        }
        //    });
        //});
    </script>
}